package main

import (
	"fmt"
)

func modify(arr *[3]int) {
	(*arr)[0] = 90
}



func modify1(arr *[3]int) {
	arr[0] = 90
}


func modify2(sls []int) {
	sls[0] = 90
}


func main() {
	a := [3]int{89, 90, 91}
	modify(&a)
	fmt.Println(a)

	a1 := [3]int{89, 90, 91}
	modify1(&a1)
	fmt.Println(a1)


	a2 := [3]int{89, 90, 91}
	modify2(a2[:])
	fmt.Println(a2)
}